﻿namespace boda.utilities.ValidateRules
{
    public class CtmRequiredAttribute : BaseAbstractAttribute
    {
        public CtmRequiredAttribute(string? messge) : base(messge) { }

        public override (bool, string?) DoValidate(object oValue)
        {
            return oValue != null && oValue.ToString().Length > 0 ? (true, string.Empty) : (false, Message);
        }

    }
}
